home *** CD-ROM | disk | FTP | other *** search
/ PC World Komputer 2010 April / PCWorld0410.iso / hity wydania / Ubuntu 9.10 PL / karmelkowy-koliberek-desktop-9.10-i386-PL.iso / casper / filesystem.squashfs / etc / dhcp3 / dhclient-exit-hooks.d / debug next >
Text File  |  2009-10-08  |  1KB  |  28 lines

  1. # $Id: debug-exit,v 1.2 2003/06/18 18:11:21 peloy Exp $
  2. #
  3. # The purpose of this script is just to show the variables that are
  4. # available to all the scripts in this directory. All these scripts
  5. # are called from /etc/dhcp3/dhclient-script, which exports all the
  6. # variables shown before. If you want to debug a problem with your DHCP
  7. # setup you can enable this script and take a look at
  8. # /tmp/dhclient-script.debug.
  9.  
  10. # To enable this script set the following variable to "yes"
  11. RUN="no"
  12.  
  13. if [ "$RUN" = "yes" ]; then
  14.     echo `date`: entering dhclient-exit-hooks.d, dumping variables. \
  15.         >> /tmp/dhclient-script.debug
  16.  
  17.     for i in reason interface medium alias_ip_address new_ip_address \
  18.             new_subnet_mask new_domain_name new_domain_search \
  19.             new_domain_name_servers new_routers new_static_routes \
  20.             old_ip_address old_subnet_mask old_domain_name \
  21.             old_domain_search old_domain_name_servers old_routers \
  22.             old_static_routes; do
  23.         echo $i=\'${!i}\' >> /tmp/dhclient-script.debug
  24.     done
  25.  
  26.     echo '--------------------------' >> /tmp/dhclient-script.debug
  27. fi
  28.